<?php
$this->breadcrumbs=array(
	'Event',
    );
    ?>
    <div class="row-fluid">
        <div class="span12">
            <!--PAGE CONTENT BEGINS-->

            <div class="row-fluid">
                <h3 class="header smaller lighter blue">Event Management</h3>
                <div class="table-header">
                    <div class="btn-toolbar">

                        <div class="btn-group">
                            <button class="btn btn-small btn-danger dropdown-toggle" data-toggle="dropdown">
                                Action
                                <i class="icon-angle-down icon-on-right"></i>
                            </button>

                            <ul class="dropdown-menu dropdown-danger">
                                <li>
                                    <a href="<?php  echo Yii::app()->createAbsoluteUrl($parentUrl.'/create');   ?>">Create</a>
                                </li>
                            </ul>
                        </div><!--/btn-group-->
                    </div>
                </div>

                <table id="sample-table-2" class="table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                         
                           <th>Main title</th>
                           
                           <th>Sub title</th>
                           
                           <th>Description</th>
                           
                           <th>Location</th>
                           
                           <th>Address</th>
                           
                           <th>Contact</th>
                           
                           <th>Start date</th>
                           
                           <th>Start time</th>
                           
                           
                           <th>Tag</th>
                           
                           <th>Map</th>
                           
                           <th>Category id</th>
                           
                           <th>Gallery id</th>
                           
                           <th>Event code</th>
                           
                           <th>Priority</th>
                           
                           <th>Language id</th>
                           
                           <th>Created at</th>
                           
                           <th>Created by</th>
                           
                           <th>Updated at</th>
                           
                           <th>Updated by</th>
                           
                           
                           <!--Danh cho icon-->
                           <th></th>
                           <!--Danh cho icon--> 
                       </tr>
                   </thead>

                   <tbody>
                    <?php 
                    if(count($data)>0):
                        foreach($data as $item) :
                           ?> 
                       <tr>
                           
                           <td><?php echo $item->main_title ?> </td>
                           
                           <td><?php echo $item->sub_title ?> </td>
                           
                           <td><?php echo $item->description ?> </td>
                           
                           <td><?php echo $item->location ?> </td>
                           
                           <td><?php echo $item->address ?> </td>
                           
                           <td><?php echo $item->contact ?> </td>
                           
                           <td><?php echo $item->start_date ?> </td>
                           
                           <td><?php echo $item->start_time ?> </td>
                           
                           
                           <td><?php echo $item->tag ?> </td>
                           
                           <td><?php echo $item->map ?> </td>
                           
                           <td><?php echo $item->category_id ?> </td>
                           
                           <td><?php echo $item->gallery_id ?> </td>
                           
                           <td><?php echo $item->event_code ?> </td>
                           
                           <td><?php echo $item->priority ?> </td>
                           
                           <td><?php echo $item->language_id ?> </td>
                           
                           <td><?php echo $item->created_at ?> </td>
                           
                           <td><?php echo $item->created_by ?> </td>
                           
                           <td><?php echo $item->updated_at ?> </td>
                           
                           <td><?php echo $item->updated_by ?> </td>
                           

                           <!--Danh cho icon-->
                           <td class="td-actions">
                            <div class="hidden-phone visible-desktop action-buttons">
                                <a class="blue" href="<?php echo Yii::app()->createAbsoluteUrl($parentUrl.'/view',array('id'=>$item->id));  ?>">
                                    <i class="icon-zoom-in bigger-130"></i>
                                </a>

                                <a class="green" href="<?php echo Yii::app()->createAbsoluteUrl($parentUrl.'/update',array('id'=>$item->id));  ?>">
                                    <i class="icon-pencil bigger-130"></i>
                                </a>

                                <a class="red" href="<?php echo Yii::app()->createAbsoluteUrl($parentUrl.'/delete',array('id'=>$item->id));  ?>">
                                    <i class="icon-trash bigger-130"></i>
                                </a>
                            </div>

                            <div class="hidden-desktop visible-phone">
                                <div class="inline position-relative">
                                    <button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown">
                                        <i class="icon-caret-down icon-only bigger-120"></i>
                                    </button>

                                    <ul class="dropdown-menu dropdown-icon-only dropdown-yellow pull-right dropdown-caret dropdown-close">
                                        <li>
                                            <a href="<?php echo Yii::app()->createAbsoluteUrl($parentUrl.'/view',array('id'=>$item->id));  ?>" class="tooltip-info" data-rel="tooltip" title="View">
                                                <span class="blue">
                                                    <i class="icon-zoom-in bigger-120"></i>
                                                </span>
                                            </a>
                                        </li>

                                        <li>
                                            <a href="<?php echo Yii::app()->createAbsoluteUrl($parentUrl.'/update',array('id'=>$item->id));  ?>" class="tooltip-success" data-rel="tooltip" title="Edit">
                                                <span class="green">
                                                    <i class="icon-edit bigger-120"></i>
                                                </span>
                                            </a>
                                        </li>

                                        <li>
                                            <a href="<?php echo Yii::app()->createAbsoluteUrl($parentUrl.'/delete',array('id'=>$item->id));  ?>" class="tooltip-error" data-rel="tooltip" title="Delete">
                                                <span class="red">
                                                    <i class="icon-trash bigger-120"></i>
                                                </span>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </td>
                        <!--Danh cho icon-->
                    </tr>
                <?php endforeach; endif;  ?>                                    
                
            </tbody>
        </table>
    </div>
</div><!--/.span-->
</div><!--/.row-fluid-->